package com.xhg.mqtt.templet;

import com.xhg.mqtt.listener.MqttLogger;
import com.xhg.mqtt.util.LogUtil;

/**
 * @Description 
 * @author E.T
 * @date 2018-08-02 13:54
 * @updateby
 * @updatedate
 * @version 1.0
 * @since 1.0
 */
public class Logger extends MqttLogger {
    @Override
        public void info(String logger){
        LogUtil.print(logger);
        }

    @Override
    public void debug(String logger) {
        LogUtil.print(logger);
    }

    @Override
    public void warn(String logger) {
        LogUtil.print(logger);
    }

    @Override
    public void error(String logger) {
        LogUtil.print(logger);
    }

    @Override
    public void error(String logger,String msg, Throwable throwable) {
        throwable.printStackTrace();
        LogUtil.print(logger+msg);
    }

    @Override
    public void warn(String logger,String msg, Throwable throwable) {
        LogUtil.print(logger+msg);
    }
}
